 <!DOCTYPE html>

<html>

<!--Made By kailuosoft.com, TEL 171 9992 9517 -->

<head>



    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>种类</title>

    <meta name="keywords" content="">

    <meta name="description" content="">



    <include file="Commons/commons" />



   <script type="text/javascript">


      //传递页码的 js 函数
    function page(nowpage,pagesize){

      if(nowpage)

        $("input[name='nowpage']").val(nowpage);

      if(pagesize)

        $("input[name='pagesize']").val(pagesize);

      $("#searchForm").submit();

    }

    

    function dele(id)

    {

        layer.confirm('确定要删除吗？',

                    {btn:['确定','取消']},

              function(){

                

                location.href="goods_delete/id/"+id

              }),

				  

				  function(){return false;} 

				  

		}

	

	  </script>

	

	</head>



<body class="gray-bg" style="width:1000px; overflow:auto;">

    <div class="wrapper wrapper-content animated fadeInRight">

         

        <div class="row">

            <div class="col-sm-12">

                <div class="ibox float-e-margins">

                    <div class="ibox-title">

                        <h5>书籍类别管理</h5>

                        

                    </div>

                    <div >

                    <form id="searchForm" class="form-inline" method="post" action="" >

                    <div class="row">

                            

                            <div class='search'>

                              <input type="text" name="sku" placeholder="按名称" <if condition="$sku neq ''">value={$sku}</if> />
                                &nbsp;&nbsp;&nbsp;&nbsp;
                               


                              

                            
                               <!--  上传产品系统时间  -->


                              <!--  <input class="form-control input-sm cycle_start" placeholder="按初次合作时间" name='up_time_start' id='start' onClick="laydate({istime: true, format: 'YYYY-MM-DD'})" value="{$data['starttime']}">            到

                               <input class="form-control input-sm cycle_end" placeholder="结束时间" name='up_time_end' id='end' onClick="laydate({istime: true, format: 'YYYY-MM-DD'})" value="{$data['endtime']}">


                                <select class="form-control" style="margin-top:-5px;" name="platform" id="platform">

                                	<option value="">按客户经理</option> -->

                                	<!--  循环输入平台名称 于选择列表中 -->
                                  

                  <button type="submit" class="btn btn-sm btn-primary"> 搜索</button>



                <a class="btn btn-white btn-sm " href="javascript:window.location.reload(true);" data-toggle="tooltip" data-placement="left"   title="刷新"> <i class="glyphicon glyphicon-repeat"></i> 刷新</a>  

                <a href="{:U('add')}" data-toggle="tooltip" data-placement="right" title="新建"> <i class="btn btn-sm btn-primary">新增类别</i></a> 
                  &nbsp;&nbsp;&nbsp;&nbsp;
                


                  

                            </div>

                        </div>

            </form>

            <form action="" method='post' >
                         <input type="hidden" name="nowpage" value="{$nowpage}"/>

                        <input type="hidden" name="pagesize" value="{$pagesize}"/>

                        <table class="table table-bordered table-striped table-hover">

                            <thead>

                              <tr>

                              <th width="2%"><input class="check-all" type="checkbox" value=""/></th>

                            

                              <th width="5%">类别名称</th>

                              <th width="25%">类别备注</th>

                              
                              <th>操作</th>
                              

                              </tr>

                            </thead>

                            <tbody>

                            <!-- 循环列出数据 -->
                              <foreach name="res" item="book">

                                <tr>

                                    <td>

                                      <input class="i-checks" type="checkbox" name="ids" value="{$book.id}" />

                                    </td>
                                   

                                    <td>{$book.cate_name}</td>
                                    <td>{$book.remark}</td>
                                   
                                   
                                    <td>

                                       <a class="btn btn-sm btn-primary" href="{:U('edit',array('eid'=>$book['id']))}">编辑</a>
                                        <a class="btn btn-sm btn-primary" href="{:U('del',array('id'=>$book['id']))}">删除</a>

                                    </td>

                                </tr>

                              </foreach>                           

                            </tbody>

                        </table>

                        <table width="100%" border="0">

                          <tr>

                            <td >

                         <!--   <a class="btn btn-sm btn-primary" title="批量导出" id="daochu_management" >批量导出</a> -->&nbsp;

                          </tr>

                        </table><br/>

             

            </form>

            

  <!-- 分页代码 -->
<!-- 
<div class="fixed-table-pagination" style="display: block;">

  <div class="pull-left pagination-detail">

    <span class="pagination-info">显示第 {$nowpage} 页  <?php echo count($list); ?> 条记录，总共 {$count} 条记录</span>

    <span class="page-list">每页显示 

      <span class="btn-group dropup">

        <button type="button" class="btn btn-default  btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false">

          <span class="page-size">{$pagesize}</span> <span class="caret"></span></button>

          <ul class="dropdown-menu" role="menu">

          <li class="<if condition=" $pagesize eq 10"> active </if>"><a href="javascript:page(1,10,'');">10</a></li>

          <li class="<if condition=" $pagesize eq 25"> active </if>"><a href="javascript:page(1,25,'');">25</a></li>

          <li class="<if condition=" $pagesize eq 50"> active </if>"><a href="javascript:page(1,50,'');">50</a></li>

          <li class="<if condition=" $pagesize eq 100"> active </if>"><a href="javascript:page(1,100,'');">100</a></li>

          </ul>

          </span> 条记录</span>

        </div>


        <!--       翻页功能           -->

      <!--   <div class="pull-right pagination-roll">

         <ul class="pagination pagination-outline">

          <li class="paginate_button <if condition=" $nowpage eq 1"> previous disabled </if>"><a href="javascript:" onClick="page(1,{$pagesize},'');"><i class="fa fa-angle-double-left"></i></a></li>

          <li class="paginate_button <if condition=" $nowpage eq 1"> previous disabled </if>"><a href="javascript:" onClick="page({$nowpage}-1,{$pagesize},'');"><i class="fa fa-angle-left"></i></a></li>

           <if condition=" $countpage gt 10 "> 

            <if condition=" $nowpage lt 5 "> 

              <li class="paginate_button "><a href="javascript:" onClick="page(1,{$pagesize},'');" id="<?php echo ($nowpage==1)?'current':''; ?>">1</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(2,{$pagesize},'');" id="<?php echo ($nowpage==2)?'current':''; ?>">2</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(3,{$pagesize},'');" id="<?php echo ($nowpage==3)?'current':'' ?>">3</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(4,{$pagesize},'');" id="<?php echo ($nowpage==4)?'current':'' ?>">4</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(5,{$pagesize},'');" id="<?php echo ($nowpage==5)?'current':'' ?>">5</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(6,{$pagesize},'');" id="<?php echo ($nowpage==6)?'current':'' ?>">6</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(7,{$pagesize},'');" id="<?php echo ($nowpage==7)?'current':'' ?>">7</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(8,{$pagesize},'');" id="<?php echo ($nowpage==8)?'current':'' ?>">8</a></li>

              <li class="paginate_button disabled"><a href="javascript:">...</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page({$countpage},{$pagesize},'');">{$countpage}</a></li>

            <elseif condition="$nowpage lt $count.num and $nowpage egt 5"/>

              <li class="paginate_button "><a href="javascript:" onClick="page(1,{$pagesize},'');">1</a></li>

              <li class="paginate_button disabled"><a href="javascript:">...</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $nowpage-3; ?>,{$pagesize},'');"><?php echo $nowpage-3; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $nowpage-2; ?>,{$pagesize},'');"><?php echo $nowpage-2; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $nowpage-1; ?>,{$pagesize},'');"><?php echo $nowpage-1; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page({$nowpage},{$pagesize},'');" id='current'><?php echo $nowpage; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $nowpage+1; ?>,{$pagesize},'');"><?php echo $nowpage+1; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $nowpage+2; ?>,{$pagesize},'');"><?php echo $nowpage+2; ?></a></li> 

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $nowpage+3; ?>,{$pagesize},'');"><?php echo $nowpage+3; ?></a></li>

              <li class="paginate_button disabled"><a href="javascript:">...</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page({$countpage},{$pagesize},'');">{$countpage}</a></li>

            <else />

              <li class="paginate_button "><a href="javascript:" onClick="page(1,{$pagesize},'');">1</a></li>

              <li class="paginate_button disabled"><a href="javascript:">...</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $countpage-4; ?>,{$pagesize},'');" id="<?php echo ($nowpage==($countpage-4))?'current':'' ?>"><?php echo $countpage-4; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $countpage-3; ?>,{$pagesize},'');" id="<?php echo ($nowpage==($countpage-3))?'current':'' ?>"><?php echo $countpage-3; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $countpage-2; ?>,{$pagesize},'');" id="<?php echo ($nowpage==($countpage-2))?'current':'' ?>"><?php echo $countpage-2; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $countpage-1; ?>,{$pagesize},'');" id="<?php echo ($nowpage==($countpage-1))?'current':'' ?>"><?php echo $countpage-1; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $countpage; ?>,{$pagesize},'');" id="<?php echo ($nowpage==$countpage)?'current':'' ?>"><?php echo $countpage; ?></a></li>

            </if>

          <else />

            <for start="0" end="$countpage" name='i'>



              <li class="paginate_button <if condition=" $nowpage eq $i+1"> previous disabled </if>"><a href="javascript:" onClick="page({$i+1},{$pagesize},'');" id="<?php echo ($nowpage==($i+1))?'current':'' ?>">{$i+1}</a></li>

            </for>

          </if>

           <li class="paginate_button next <if condition=" $nowpage egt $countpage"> previous disabled </if>"><a href="javascript:" onClick="<if condition=" $nowpage lt $countpage ">page({$nowpage}+1,{$pagesize},'');</if>"><i class="fa fa-angle-right"></i></a></li>

           <li class="paginate_button next <if condition=" $nowpage egt $countpage"> previous disabled </if>"><a href="javascript:" onClick="page({$countpage},{$pagesize},'');"><i class="fa fa-angle-double-right"></i></a></li>

                </ul>

        </div>

    </div>

  <br/>

  <br/> -->

  </div>

  </div>

</div>

                    </div>

                </div>

            </div>

             

        </div>

         

    </div>

    <script src="__PUBLIC__/js/jquery.min63b9.js?v=2.1.4"></script>

    <script src="__PUBLIC__/js/bootstrap.min14ed.js?v=3.3.6"></script>

    <script src="__PUBLIC__/js/plugins/peity/jquery.peity.min.js"></script>

    <script src="__PUBLIC__/js/content.mine209.js?v=1.0.0"></script>

    <script src="__PUBLIC__/js/plugins/iCheck/icheck.min.js"></script>

    <script src="__PUBLIC__/js/demo/peity-demo.min.js"></script>

  <script src="__PUBLIC__/js/plugins/layer/laydate/laydate.js"></script>

   



    <script>

        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});

     $(document).ready(function () {

    

            $('.check-all').iCheck({

       



                checkboxClass: 'icheckbox_square-green',

                radioClass: 'iradio_square-green',

            });

        });

    

  

  $(document).ready(function() {

    $('.check-all').on('ifChecked', function(event){ //ifCreated 事件应该在插件初始化之前绑定 

        $('.i-checks').iCheck('check');

      });



    $('.check-all').on('ifUnchecked', function(event){ //ifCreated 事件应该在插件初始化之前绑定 

        $('.i-checks').iCheck('uncheck');

      });

	  

	  

	  

	  

	  $('#finish_All').click(function(){

		    ids='';

		    $('.i-checks').each(function(){

				if($(this).prop('checked'))

				{

					ids+=$(this).val()+',';

				}

			 })

			 if(ids=='')

			 {

				 layer.alert('请选择订单');

				 return false

			 }

		    $(this).attr('href','finishAll?tids='+ids);

			

	  }) 

	  

	  

	  $('#daochu_management').click(function(){

		    ids='';

		    $('.i-checks').each(function(){

				if($(this).prop('checked'))

				{

					ids+=$(this).val()+',';

				}

			 })

       var start = $('#start').val();

       var end = $('#end').val();



			 if(ids==''&&!start&&!end)

			 {

				 layer.alert('请选择产品或选择对应时间段、进行导出');

				 return false

			 }

       if(ids==''){

          $(this).attr('href','{:U("Product/get_xxxxxx_id")}?start='+start+'&end='+end);

       }else{

          $(this).attr('href','{:U("Product/export_download")}?source_page=product_circulation&ids='+ids);

       }

		  

			

	  }) 

    

});

    </script>

    <div style="display:none"><script language="javascript" type="text/javascript" src="http://js.users.51.la/17825721.js"></script>

<noscript><a href="http://www.51.la/?17825721" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/17825721.asp" style="border:none" /></a></noscript></div>

</body>

<!--Made By kailuosoft.com, TEL 171 9992 9517 -->

<script  type="text/javascript"  src="http://g.tbcdn.cn/sj/securesdk/0.0.3/securesdk_v2.js"  id="J_secure_sdk_v2" data-appkey="23416550"></script>


<script type="text/javascript">

  function submitTime(){

  }

</script>
<include file="Commons/commons" />
</html>

